<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{$site_info.site_seo_title|default=''}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$site_info.site_seo_description|default=''}"/>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="/static/fly/css/global.css">
</head>
<body>
    {include file='common/header' /}

    {include file='common/nav' /}

    <div class="layui-container">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md8">
                <div class="fly-panel">
                    <div class="fly-panel-title fly-filter">
                        <a>置顶</a>
                        <a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin"
                           style="color: #FF5722;">去签到</a>
                    </div>
                    <ul class="fly-list">
                        <!--公告，动态-->
                        {tp:list name="list" where="stick=1" limit="10"}
                        <li>
                            <a href="/user/{$list.user_id}" class="fly-avatar">
                                <img src="{$list.avatar}" alt="{$list.title}">
                            </a>
                            <h2>
                                <a class="layui-badge">{$list.name}</a>
                                <a href="/forum/{$list.id}">{$list.title}</a>
                            </h2>
                            <div class="fly-list-info">
                                <a href="/user/{$list.user_id}" link>
                                    <cite>{$list.username}</cite>
                                </a>
                                <span>{$list.updated_at}</span>
                            </div>
                        </li>
                        {/tp:list}
                    </ul>
                </div>

                <div class="fly-panel" style="margin-bottom: 0;">

                    {include file='common/filter' /}

                    <ul class="fly-list">
                        {tp:list name="list" where="stick=0" limit="10"}
                        <li>
                            <a href="/user/{$list.user_id}" class="fly-avatar">
                                <img src="{$list.avatar}" alt="{$list.title}">
                            </a>
                            <h2>
                                <a class="layui-badge">{$list.name}</a>
                                <a href="/forum/{$list.id}">{$list.title}</a>
                            </h2>
                            <div class="fly-list-info">
                                <a href="/user/{$list.user_id}" link>
                                    <cite>{$list.username}</cite>
                                    <i class="iconfont icon-renzheng" title="认证信息：作者"></i>
                                    <i class="layui-badge fly-badge-vip">VIP1</i>
                                </a>
                                <span>{$list.update_time}</span>
                                {if $list.score}
                                <span class="fly-list-kiss layui-hide-xs" title="悬赏积分">
                                    <i class="iconfont icon-kiss"></i> {$list.score}
                                </span>
                                {/if}
                                {if $list.accept}<span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>{/if}
                                <span class="fly-list-nums"><i class="iconfont icon-pinglun1" title="回答"></i> {$list.comment_count}</span>
                            </div>
                            {if $list.digest}
                            <div class="fly-list-badge">
                                <span class="layui-badge layui-bg-red">精帖</span>
                            </div>
                            {/if}
                        </li>
                        {/tp:list}
                    </ul>
                    <div style="text-align: center">
                        <div class="laypage-main">
                            <a href="/forum" class="laypage-next">更多求解</a>
                        </div>
                    </div>

                </div>
            </div>
            <div class="layui-col-md4">

                <div class="fly-panel">
                    <h3 class="fly-panel-title">温馨通道</h3>
                    <ul class="fly-panel-main fly-list-static">

                        <li>
                            <a href="https://gitee.com/sentsin/layui" target="_blank">layui 的 Gitee (码云) 仓库，欢迎Star</a>
                        </li>

                    </ul>
                </div>
                <!-- signin -->

                {include file='common/right' /}
            </div>
        </div>
    </div>

    {include file='common/footer' /}
    {$system.analytics|raw|default=''}
</body>
</html>
